package com.tn.socket;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName SocketProperties
 * @Description TODO
 * @Author Yezhongzhu
 * @Date 2021/12/30 10:36
 * @Version v1.0
 **/
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "socket")
public class SocketProperties {
    @Value("${socket.internet-ip}")
    private String  internetIp;
    @Value("${socket.port}")
    private Integer port;

    @Value("${socket.pool-keep}")
    private Integer  poolKeep; // = "DC" + (int) (Math.random() * 100000000)

    @Value("${socket.pool-core}")
    private Integer poolCore;

    @Value("${socket.pool-max}")
    private Integer poolMax;

    @Value("${socket.pool-queue-init}")
    private Integer  poolQueueInit;
    @Value("${socket.use-internet}")
    private boolean  useInternet;

}
